<?php

namespace App\Http\Controllers\Tool;

use App\Models\PrizeLog;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\Prize;
use App\Libraries\classs\Face;
use App\Libraries\classs\Prizes;
use Illuminate\Support\Facades\DB;

//use App\Libraries\classs\Prize;


class TestController extends Controller
{
    public function PrizeLog(){
        $rs = PrizeLog::with('users','PrizeRank')->where('id','>',0)->first();
     print_r($rs->toArray());
    }

    public function face(){
        echo Prizes::getInstance()->getPrize();
    }

    public function show(){
    }

    public function index(){
//        $rs = Face::getInstance()->detect('http://static.tuozhong.net/7c069bcd72629b42e55b6cd913098d01.jpg');
//        $rs = Face::getInstance()->detect('http://static.tuozhong.net/f85427749d3180bbaf57516a7ba4f4f0.jpeg');
//        $rs =Face::getInstance()->detect('http://static.tuozhong.net/5004a34724ebe51ac8a55dcdc5888f49.jpeg');
//        $rs= Face::getInstance()->setMateFaceLink(1,"a64c1a3f3c13e78a158b5c2ae6534fa0",205);
//        print_r($rs);
        $rs= Face::getInstance()->getdetail();
        print_r($rs);
        exit();
        $rs = Face::getInstance()->FaceSetDelete();
        print_r($rs);
    }

    public function test(){

        Face::getInstance()->FaceSet('first');
        Face::getInstance()->addface('612a8b0b38a040686ed5e45cb65558a3');
        Face::getInstance()->search('612a8b0b38a040686ed5e45cb65558a3');
    }
}
